﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020013D9 RID: 5081
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class TrainPartyData : IMessage<TrainPartyData>, IMessage, IEquatable<TrainPartyData>, IDeepCloneable<TrainPartyData>, IBufferMessage
	{
		// Token: 0x17004013 RID: 16403
		// (get) Token: 0x0600E391 RID: 58257 RVA: 0x00260764 File Offset: 0x0025E964
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<TrainPartyData> Parser
		{
			get
			{
				return TrainPartyData._parser;
			}
		}

		// Token: 0x17004014 RID: 16404
		// (get) Token: 0x0600E392 RID: 58258 RVA: 0x0026076B File Offset: 0x0025E96B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return TrainPartyDataReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17004015 RID: 16405
		// (get) Token: 0x0600E393 RID: 58259 RVA: 0x0026077D File Offset: 0x0025E97D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return TrainPartyData.Descriptor;
			}
		}

		// Token: 0x0600E394 RID: 58260 RVA: 0x00260784 File Offset: 0x0025E984
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TrainPartyData()
		{
		}

		// Token: 0x0600E395 RID: 58261 RVA: 0x0026078C File Offset: 0x0025E98C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TrainPartyData(TrainPartyData other) : this()
		{
			this.passengerInfo_ = ((other.passengerInfo_ != null) ? other.passengerInfo_.Clone() : null);
			this.nPKLLEHIOAL_ = other.nPKLLEHIOAL_;
			this.trainPartyInfo_ = ((other.trainPartyInfo_ != null) ? other.trainPartyInfo_.Clone() : null);
			this.trainPartyGameInfo_ = ((other.trainPartyGameInfo_ != null) ? other.trainPartyGameInfo_.Clone() : null);
			this.dPOLGBKEKLD_ = other.dPOLGBKEKLD_;
			this.recordId_ = other.recordId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600E396 RID: 58262 RVA: 0x00260828 File Offset: 0x0025EA28
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TrainPartyData Clone()
		{
			return new TrainPartyData(this);
		}

		// Token: 0x17004016 RID: 16406
		// (get) Token: 0x0600E397 RID: 58263 RVA: 0x00260830 File Offset: 0x0025EA30
		// (set) Token: 0x0600E398 RID: 58264 RVA: 0x00260838 File Offset: 0x0025EA38
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TrainPartyPassengerInfo PassengerInfo
		{
			get
			{
				return this.passengerInfo_;
			}
			set
			{
				this.passengerInfo_ = value;
			}
		}

		// Token: 0x17004017 RID: 16407
		// (get) Token: 0x0600E399 RID: 58265 RVA: 0x00260841 File Offset: 0x0025EA41
		// (set) Token: 0x0600E39A RID: 58266 RVA: 0x00260849 File Offset: 0x0025EA49
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint NPKLLEHIOAL
		{
			get
			{
				return this.nPKLLEHIOAL_;
			}
			set
			{
				this.nPKLLEHIOAL_ = value;
			}
		}

		// Token: 0x17004018 RID: 16408
		// (get) Token: 0x0600E39B RID: 58267 RVA: 0x00260852 File Offset: 0x0025EA52
		// (set) Token: 0x0600E39C RID: 58268 RVA: 0x0026085A File Offset: 0x0025EA5A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TrainPartyInfo TrainPartyInfo
		{
			get
			{
				return this.trainPartyInfo_;
			}
			set
			{
				this.trainPartyInfo_ = value;
			}
		}

		// Token: 0x17004019 RID: 16409
		// (get) Token: 0x0600E39D RID: 58269 RVA: 0x00260863 File Offset: 0x0025EA63
		// (set) Token: 0x0600E39E RID: 58270 RVA: 0x0026086B File Offset: 0x0025EA6B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TrainPartyGameInfo TrainPartyGameInfo
		{
			get
			{
				return this.trainPartyGameInfo_;
			}
			set
			{
				this.trainPartyGameInfo_ = value;
			}
		}

		// Token: 0x1700401A RID: 16410
		// (get) Token: 0x0600E39F RID: 58271 RVA: 0x00260874 File Offset: 0x0025EA74
		// (set) Token: 0x0600E3A0 RID: 58272 RVA: 0x0026087C File Offset: 0x0025EA7C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint DPOLGBKEKLD
		{
			get
			{
				return this.dPOLGBKEKLD_;
			}
			set
			{
				this.dPOLGBKEKLD_ = value;
			}
		}

		// Token: 0x1700401B RID: 16411
		// (get) Token: 0x0600E3A1 RID: 58273 RVA: 0x00260885 File Offset: 0x0025EA85
		// (set) Token: 0x0600E3A2 RID: 58274 RVA: 0x0026088D File Offset: 0x0025EA8D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint RecordId
		{
			get
			{
				return this.recordId_;
			}
			set
			{
				this.recordId_ = value;
			}
		}

		// Token: 0x0600E3A3 RID: 58275 RVA: 0x00260896 File Offset: 0x0025EA96
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as TrainPartyData);
		}

		// Token: 0x0600E3A4 RID: 58276 RVA: 0x002608A4 File Offset: 0x0025EAA4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(TrainPartyData other)
		{
			return other != null && (other == this || (object.Equals(this.PassengerInfo, other.PassengerInfo) && this.NPKLLEHIOAL == other.NPKLLEHIOAL && object.Equals(this.TrainPartyInfo, other.TrainPartyInfo) && object.Equals(this.TrainPartyGameInfo, other.TrainPartyGameInfo) && this.DPOLGBKEKLD == other.DPOLGBKEKLD && this.RecordId == other.RecordId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600E3A5 RID: 58277 RVA: 0x0026093C File Offset: 0x0025EB3C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.passengerInfo_ != null)
			{
				num ^= this.PassengerInfo.GetHashCode();
			}
			if (this.NPKLLEHIOAL != 0U)
			{
				num ^= this.NPKLLEHIOAL.GetHashCode();
			}
			if (this.trainPartyInfo_ != null)
			{
				num ^= this.TrainPartyInfo.GetHashCode();
			}
			if (this.trainPartyGameInfo_ != null)
			{
				num ^= this.TrainPartyGameInfo.GetHashCode();
			}
			if (this.DPOLGBKEKLD != 0U)
			{
				num ^= this.DPOLGBKEKLD.GetHashCode();
			}
			if (this.RecordId != 0U)
			{
				num ^= this.RecordId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600E3A6 RID: 58278 RVA: 0x002609EF File Offset: 0x0025EBEF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600E3A7 RID: 58279 RVA: 0x002609F7 File Offset: 0x0025EBF7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600E3A8 RID: 58280 RVA: 0x00260A00 File Offset: 0x0025EC00
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.RecordId != 0U)
			{
				output.WriteRawTag(16);
				output.WriteUInt32(this.RecordId);
			}
			if (this.DPOLGBKEKLD != 0U)
			{
				output.WriteRawTag(48);
				output.WriteUInt32(this.DPOLGBKEKLD);
			}
			if (this.trainPartyGameInfo_ != null)
			{
				output.WriteRawTag(74);
				output.WriteMessage(this.TrainPartyGameInfo);
			}
			if (this.trainPartyInfo_ != null)
			{
				output.WriteRawTag(82);
				output.WriteMessage(this.TrainPartyInfo);
			}
			if (this.passengerInfo_ != null)
			{
				output.WriteRawTag(90);
				output.WriteMessage(this.PassengerInfo);
			}
			if (this.NPKLLEHIOAL != 0U)
			{
				output.WriteRawTag(120);
				output.WriteUInt32(this.NPKLLEHIOAL);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600E3A9 RID: 58281 RVA: 0x00260ACC File Offset: 0x0025ECCC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.passengerInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.PassengerInfo);
			}
			if (this.NPKLLEHIOAL != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.NPKLLEHIOAL);
			}
			if (this.trainPartyInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.TrainPartyInfo);
			}
			if (this.trainPartyGameInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.TrainPartyGameInfo);
			}
			if (this.DPOLGBKEKLD != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.DPOLGBKEKLD);
			}
			if (this.RecordId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.RecordId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600E3AA RID: 58282 RVA: 0x00260B84 File Offset: 0x0025ED84
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(TrainPartyData other)
		{
			if (other == null)
			{
				return;
			}
			if (other.passengerInfo_ != null)
			{
				if (this.passengerInfo_ == null)
				{
					this.PassengerInfo = new TrainPartyPassengerInfo();
				}
				this.PassengerInfo.MergeFrom(other.PassengerInfo);
			}
			if (other.NPKLLEHIOAL != 0U)
			{
				this.NPKLLEHIOAL = other.NPKLLEHIOAL;
			}
			if (other.trainPartyInfo_ != null)
			{
				if (this.trainPartyInfo_ == null)
				{
					this.TrainPartyInfo = new TrainPartyInfo();
				}
				this.TrainPartyInfo.MergeFrom(other.TrainPartyInfo);
			}
			if (other.trainPartyGameInfo_ != null)
			{
				if (this.trainPartyGameInfo_ == null)
				{
					this.TrainPartyGameInfo = new TrainPartyGameInfo();
				}
				this.TrainPartyGameInfo.MergeFrom(other.TrainPartyGameInfo);
			}
			if (other.DPOLGBKEKLD != 0U)
			{
				this.DPOLGBKEKLD = other.DPOLGBKEKLD;
			}
			if (other.RecordId != 0U)
			{
				this.RecordId = other.RecordId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600E3AB RID: 58283 RVA: 0x00260C6C File Offset: 0x0025EE6C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600E3AC RID: 58284 RVA: 0x00260C78 File Offset: 0x0025EE78
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 74U)
				{
					if (num == 16U)
					{
						this.RecordId = input.ReadUInt32();
						continue;
					}
					if (num == 48U)
					{
						this.DPOLGBKEKLD = input.ReadUInt32();
						continue;
					}
					if (num == 74U)
					{
						if (this.trainPartyGameInfo_ == null)
						{
							this.TrainPartyGameInfo = new TrainPartyGameInfo();
						}
						input.ReadMessage(this.TrainPartyGameInfo);
						continue;
					}
				}
				else
				{
					if (num == 82U)
					{
						if (this.trainPartyInfo_ == null)
						{
							this.TrainPartyInfo = new TrainPartyInfo();
						}
						input.ReadMessage(this.TrainPartyInfo);
						continue;
					}
					if (num == 90U)
					{
						if (this.passengerInfo_ == null)
						{
							this.PassengerInfo = new TrainPartyPassengerInfo();
						}
						input.ReadMessage(this.PassengerInfo);
						continue;
					}
					if (num == 120U)
					{
						this.NPKLLEHIOAL = input.ReadUInt32();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x04005A0B RID: 23051
		private static readonly MessageParser<TrainPartyData> _parser = new MessageParser<TrainPartyData>(() => new TrainPartyData());

		// Token: 0x04005A0C RID: 23052
		private UnknownFieldSet _unknownFields;

		// Token: 0x04005A0D RID: 23053
		public const int PassengerInfoFieldNumber = 11;

		// Token: 0x04005A0E RID: 23054
		private TrainPartyPassengerInfo passengerInfo_;

		// Token: 0x04005A0F RID: 23055
		public const int NPKLLEHIOALFieldNumber = 15;

		// Token: 0x04005A10 RID: 23056
		private uint nPKLLEHIOAL_;

		// Token: 0x04005A11 RID: 23057
		public const int TrainPartyInfoFieldNumber = 10;

		// Token: 0x04005A12 RID: 23058
		private TrainPartyInfo trainPartyInfo_;

		// Token: 0x04005A13 RID: 23059
		public const int TrainPartyGameInfoFieldNumber = 9;

		// Token: 0x04005A14 RID: 23060
		private TrainPartyGameInfo trainPartyGameInfo_;

		// Token: 0x04005A15 RID: 23061
		public const int DPOLGBKEKLDFieldNumber = 6;

		// Token: 0x04005A16 RID: 23062
		private uint dPOLGBKEKLD_;

		// Token: 0x04005A17 RID: 23063
		public const int RecordIdFieldNumber = 2;

		// Token: 0x04005A18 RID: 23064
		private uint recordId_;
	}
}
